package cn.ffcs.unm.insurance.manager.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.unm.insurance.dao.InsuranceTypeDao;
import cn.ffcs.unm.insurance.manager.InsuranceTypeManager;
import cn.ffcs.unm.insurance.model.BmData;
import cn.ffcs.unm.insurance.model.InsurancePeriod;
import cn.ffcs.unm.insurance.model.InsuranceProject;
import cn.ffcs.unm.insurance.model.InsurancePublicProject;
import cn.ffcs.unm.insurance.model.InsuranceState;
import cn.ffcs.unm.insurance.model.InsuranceType;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("insuranceTypeManager")
@Scope("prototype")
public class InsuranceTypeManagerImpl implements InsuranceTypeManager {

	@Resource
	private InsuranceTypeDao insuranceTypeDao;

	@Override
	public PageInfo queryPageInfoByInsuranceType(InsuranceType insuranceType, int currentPage, int pageSize) {
		return insuranceTypeDao.queryPageInfoByInsuranceType(insuranceType, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByInsurancePoject(InsuranceProject insuranceProject, int currentPage, int pageSize) {
		return insuranceTypeDao.queryPageInfoByInsuranceProject(insuranceProject, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByInsurancePublicProject(InsurancePublicProject insurancePublicProject,
			int currentPage, int pageSize) {
		return insuranceTypeDao.queryPageInfoByInsurancePublicProject(insurancePublicProject, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByInsurancePeriod(InsurancePeriod insurancePeriod, int currentPage, int pageSize) {
		return insuranceTypeDao.queryPageInfoByInsurancePeriod(insurancePeriod, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByInsuranceState(InsuranceState insuranceState, int currentPage, int pageSize) {
		return insuranceTypeDao.queryPageInfoByInsuranceState(insuranceState, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByBmData(BmData bmData, int currentPage,
			int pageSize) {
		return insuranceTypeDao.queryPageInfoByBmData(bmData, currentPage, pageSize);
	}


}
